﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ZoneLine.Views
{
    /// <summary>
    /// StationResultView.xaml 的交互逻辑
    /// </summary>
    public partial class StationResultView : Window
    {
        private static object _objLock = new object();
        private static StationResultView _ins;
        public static StationResultView GetView()
        {
            lock (_objLock)
            {
                if (_ins == null)
                {
                    _ins = new StationResultView();
                }
            }
            return _ins;
        }

        private StationResultView()
        {
            InitializeComponent();
            this.Closed += StationResultView_Closed;
        }

        private void StationResultView_Closed(object sender, EventArgs e)
        {
            _ins = null;
        }

        private void ConvertColumnHeaderName(object sender, DataGridAutoGeneratingColumnEventArgs e)
        {
            ConvertHelper.ConvertColumnHeader(e);
        }
    }
}
